package com.zjtaixue.o2o.util;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

@Slf4j
public class DebugUtil {
    /**
     * 打印request的信息
     * @param request
     */
    public static void logRequest(HttpServletRequest request) throws IOException {
        log.info("url={}",request.getRequestURL());
        log.info("method={}",request.getMethod());
        log.info("ip={}",request.getRemoteAddr());
        log.info("attributeName={}",request.getAttributeNames());
    }
}
